package com.example.demo1.service.impl.service;



import com.example.demo1.common.ServerResponse;
import com.example.demo1.entity.BaMenu;

import java.util.List;

public interface MenuService {

    ServerResponse addMenu(BaMenu menu);
    ServerResponse validateMenuName(String menuName);
    ServerResponse deleteMenu(Integer menuId);
    ServerResponse updateMenu(BaMenu menu);
    ServerResponse validateMenuNameExSelf(String menuName, Integer menuId);
    List<BaMenu> getAllMenus();
    ServerResponse<List<BaMenu>> getUserRightMenus(Integer userId);

}
